`ifndef _ral_reg_PPU_REG_ppu_reg_PORT_SEL_rtl_
`define _ral_reg_PPU_REG_ppu_reg_PORT_SEL_rtl_

`include "vmm_ral_rw_field_rtl.sv"
`include "vmm_ral_notifier_rtl.sv"


module ral_reg_PPU_REG_ppu_reg_PORT_SEL_rtl(input  clk,
                            input  rstn,
                            input  [31:0] hst_wdat,
                            output [31:0] hst_rdat,
                            input  [3:0] hst_sel,
                            input  hst_wen,
                            output [0:0] port_sel_out,
                            output port_sel_rd, port_sel_wr,
                            input  port_sel_wen,
                            input  [0:0] port_sel_in);

vmm_ral_rw_field_rtl #(1, 'h0)
   port_sel(clk, rstn, port_sel_out,
   hst_wdat[0:0], hst_sel[0], hst_wen,
   port_sel_in, port_sel_wen);


vmm_ral_notifier_rtl _n_port_sel(clk, rstn, hst_sel[0], hst_wen, port_sel_rd, port_sel_wr);


assign hst_rdat[31:0] = { port_sel_out };


endmodule

`endif
